Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix partial success check #10233

Merged
merged 1 commit into from
Feb 9, 2022
Merged

Conversation

lmossman
Copy link
Contributor

@lmossman lmossman commented Feb 9, 2022

Fixes the partial success check logic by first verifying that the attempts array of a job has at least one element before trying to index into it.

Without this change, the UI crashes whenever a manual sync is kicked off, as it tries to index into the attempts array of the new Job before it has any attempts, causing the attempts[attempts.length - 1].status statement to fail.

@github-actions github-actions bot added area/frontend area/platform issues related to the platform labels Feb 9, 2022
@lmossman lmossman temporarily deployed to more-secrets February 9, 2022 22:44 Inactive
@lmossman lmossman merged commit 7a443d0 into master Feb 9, 2022
@lmossman lmossman deleted the lmossman/fix-partial-success-check branch February 9, 2022 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/platform issues related to the platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants